Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix launch_static_server script when only HTTP is wanted #1609

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

peaBerberian
Copy link
Collaborator

We have "performance" tests which allow to ensure that we're not having what we could call "performance regressions", such as a higher delay to have a content loaded from a loadVideo call.

I wanted to run them yesterday for #1607, but they hanged indefinitely.

Turns out that our static server script, that we use here just to host and serve our testing scripts returned a promise that was never resolved.

(Note: we don't rely on external test runners nor on test frameworks for our performance tests, we manually detect and launch local chrome + firefox binaries on a local server serving our bundled scripts (themselves importing the RxPlayer), and at runtime those scripts send results to another "result" server when they're done)

It was never resolved because we never properly handled the case in that script were we wanted to launch an HTTP server but not an HTTPS one for the same resource(s). This is now fixed.

Hopeful that performance tests now work correctly, it's been a long time since I last ran them.

We have "performance" tests which allow to ensure that we're not having
what we could call "performance regressions", such as a higher delay to
have a content loaded from a `loadVideo` call.

I wanted to run them yesterday for #1607, but they hanged indefinitely.

Turns out that our static server script, that we use here just to host
and serve our testing scripts returned a promise that was never resolved.

_(Note: we don't rely on external test runners nor on test frameworks
for our performance tests, we manually detect and launch local
chrome + firefox binaries on a local server serving our bundled
scripts (themselves importing the RxPlayer), and at runtime those
scripts send results to another "result" server when they're done)_

It was never resolved because we never properly handled the case in that
script were we wanted to launch an HTTP server but not an HTTPS one for
the same resource(s). This is now fixed.

Hopeful that performance tests now work correctly, it's been a long time
since I last ran them.
@peaBerberian peaBerberian added bug This is an RxPlayer issue (unexpected result when comparing to the API) script Relative to the RxPlayer's scripts (e.g. build scripts, release scripts etc.) Performance checks Performance tests are run on this issue / PR and removed Performance checks Performance tests are run on this issue / PR labels Dec 20, 2024
@peaBerberian peaBerberian merged commit e7277b1 into dev Dec 23, 2024
21 checks passed
@peaBerberian peaBerberian added this to the 4.3.0 milestone Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is an RxPlayer issue (unexpected result when comparing to the API) Performance checks Performance tests are run on this issue / PR script Relative to the RxPlayer's scripts (e.g. build scripts, release scripts etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants